#include "comconfigpage.h"
#include "ui_comconfigpage.h"

ComConfigPage::ComConfigPage(QWidget *parent) :
    QWizardPage(parent),
    ui(new Ui::ComConfigPage)
{
    ui->setupUi(this);
	setupFileds();
}

void ComConfigPage::setupFileds()
{
   registerField("CameraCom*",ui->m_CameraCom);
   registerField("LedCom*",ui->m_LEDCom);
   registerField("SinglechipCom*",ui->m_SinglechipCom);
}

ComConfigPage::~ComConfigPage()
{
    delete ui;
}

void ComConfigPage::changeEvent(QEvent *e)
{
    QWizardPage::changeEvent(e);
    switch (e->type()) {
    case QEvent::LanguageChange:
        ui->retranslateUi(this);
        break;
    default:
        break;
    }
}
